import React from "react";
import { Layout} from 'antd';
import MyHeader from "../../view/Header";
import { Outlet } from "react-router-dom";

const { Content, Footer } = Layout;

export default function Home() {
    return (
        <Layout className="layout" >
            <MyHeader type={1} />
            <Content
                style={{
                    padding: '0 50px',
                    width: '100%',
                    alignSelf:'center'
                }}
            >
                <Outlet></Outlet>
            </Content>
            <Footer
                style={{
                    textAlign: 'center',
                    background: "#001529",
                    color: "white"
                }}
            >
                Ant Design ©2018 Created by Ant UED
            </Footer>
        </Layout>
    )
}
